<template>
  <div v-if="data.length>0" class="card">
    <div class="card-top">
      <div class="flexRBC">
        <div class="title-b">{{ data[0] }}</div>
        <el-tooltip
          v-if="data[4]||data[5]"
          popper-class="el-tooltip-theme-fresh"
          placement="top"
          effect="light"
        >
          <div slot="content">
            <div v-if="data[4]">{{ data[4] }}</div>
            <br>
            <div v-if="data[5]">{{ data[5] }}</div>
          </div>
          <div>
            <i class="el-icon-warning app-text-color-primary" />
          </div>
        </el-tooltip>
      </div>
      <div class="number-b">{{ data[1] }}</div>
    </div>
    <div v-if="data[2]||data[3]" class="card-bottom">
      <div class="title-s">{{ data[2] }}&nbsp;&nbsp;{{ data[3] }}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    data: {
      type: Array,
      require: true
    }
  },
  data() {
    return {}
  },
  methods: {}
}
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
  .card {
    &-top {
      .title-b {
        font-size: 16px;
        color: $light-font-color;
      }
      .number-b {
        height: 60px;
        line-height: 60px;
        font-size: 30px;
        color: $dark-font-color;
      }
    }
    &-bottom {
      border-top: 1px solid #e7e7e7;
      .title-s {
        margin-top: 10px;
        font-size: 14px;
        color: $light-font-color;
      }
    }
  }
</style>
